package com.linked.order.feign;

import com.linked.order.feign.fallback.BaseManageFeignFallBack;
import com.linked.order.feign.fallback.PayFeignFallBack;
import com.linked.universal.bean.pay.param.WaitingPayCreateParam;
import com.linked.universal.common.LinkedResult;
import com.linked.universal.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author :dbq
 * @date : 2022/11/24 9:53
 */
@FeignClient(value = "Linked-Pay", fallback = PayFeignFallBack.class)
public interface IPayFeign {

    @PostMapping(value = "/pay/payhandle/createWaitingPay")
    LinkedResult createWaitingPay(@RequestBody WaitingPayCreateParam param);

    @PostMapping(value = "/pay/payhandle/receiveSendPaymentResultBack")
    Result receiveSendPaymentResultBack(@RequestParam("payId") String payId) throws Exception;
}
